export interface LoginRequestData {
  user_name: string
  /** 密码 */
  password: string
  isAgree?: boolean
}

export interface RegisterRequestData {
  user_name: string
  /** 密码 */
  password: string
  isAgree?: boolean
  /** 职位 */
  user_position: string
}

export interface UpdatePwdRequestData {
  user_name: string
  /** 密码 */
  password?: string
  isAgree?: boolean
  /** 新密码 */
  new_password: string
}

export type LoginCodeResponseData = ApiResponseData<string>

export type LoginResponseData = ApiResponseData<{ access_token: string }>

export type UserInfoResponseData = ApiResponseData<{ user_name: string; roles: string[] }>
